package com.dragon.refect.clazz;

/**
 * 获得一个class所在的包名
 * @author dragon
 * @since 2019/12/1
 */
public class ClassGetPackageTest {

    public static void main(String[] args) {
        System.out.println(Person.class.getPackage());
        System.out.println(void.class.getPackage());
        System.out.println(int.class.getPackage());
        int[] array = new int[12];
        System.out.println(array.getClass().getPackage());
    }
}
